package cms.common;

/**
 * 功能:业务码+业务消息 枚举
 * Author: yuhui
 * Date: 2021/4/8 15:37
 */
public enum CodeMsg {
    SUCCESS(200,"请求成功"),
    ERROR_SERVER_BUG(500,"服务器BUG"),
    ERROR_USER_NAME_PWD(4001001,"用户名或密码有误"),
    ERROR_USER_NOTFOUND(4001002,"该用户不存在"),
    ERROR_LOGIN_CODE(4001003,"验证码不正确"),
    ERROR_ADD_USER(4001004,"添加用户失败"),
    ERROR_SET_USER(4001005,"重置密码失败"),
    ERROR_DEL_USER(4001006,"删除用户失败"),
    ERROR_MODIFY_PWD(4001007,"修改密码失败"),
    ERROR_MODIFY_IMG(4001008,"更新图片失败"),

    ERROR_CUSTOMER_FIND(4002001,"添加客户失败"),
    ERROR_CUSTOMER_UPDATE(4002001,"更新客户信息失败");


    public Integer code;
    public String msg;

    CodeMsg(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
